//
//  PhotoSectionModel.m
//  WOFishingBoat
//
//  Created by 郑逸凯 on 2018/12/28.
//  Copyright © 2018年 郑逸凯. All rights reserved.
//

#import "PhotoSectionModel.h"

@implementation PhotoSectionModel

- (NSMutableArray<PhotoModel *> *)photoArray {
    if (!_photoArray) {
        _photoArray = [NSMutableArray array];
    }
    return _photoArray;
}

- (void)setIsSelected:(BOOL)isSelected {
    if (_isSelected != isSelected) {
        _isSelected = isSelected;
        for (PhotoModel *model in self.photoArray) {
            model.isSelected = _isSelected;
        }
    }
}

@end
